﻿using Microsoft.AspNetCore.Mvc;
using web01.Models;

namespace web01.Controllers
{
   
    public class HomeController:Controller
    {
       
        public IActionResult Index()
        {
            Person person = new Person();
            person.Name = "小石头";
            person.Id = 11;
            ViewBag.sex = 11;/**/
            ViewBag.title = "首页";/**/
            return View(person);
                
        }

        public IActionResult Print()
        {
            return Content("打印");
        }
        
        
        /*[HttpGet("/info")]*/
        public IActionResult Info()
        {
            return Content("打印");
        }
        
    }
}